/*
 * GNU AGPL-3.0 License
 *
 * Copyright (c) 2021 - present core.ai . All rights reserved.
 * Original work Copyright (c) 2012 - 2021 Adobe Systems Incorporated. All rights reserved.
 *
 * This program is free software: you can redistribute it and/or modify it
 * under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
 * for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see https://opensource.org/licenses/AGPL-3.0.
 *
 */

/* Temporary implementation of unobtrusive scrollbars.
   FUTURE: These currently rely on nonstandard WebKit styles, and don't have all the right behavior.
   Longer-term, we'll need to implement custom scrollbars. */

.quiet-scrollbars ::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

.quiet-scrollbars ::-webkit-scrollbar-corner {
    background-color: transparent;
}

.quiet-scrollbars ::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0);
}

/* This looks like a dupe, but without it the thumb doesn't fade in
 * properly, probably due to flakiness in how these styles are handled
 * in the build of WebKit that's in CEF.
 */
.quiet-scrollbars ::-webkit-scrollbar-corner {
    background-color: transparent;
}

/* The data URIs for the thumb were generated from the Fireworks files in
 * styles/vertical-thumb-fw-outline.png and styles/horiz-thumb-fw-outline.png.
 */
.quiet-scrollbars #open-files-container:hover::-webkit-scrollbar-thumb:vertical,
.quiet-scrollbars #project-files-container:hover::-webkit-scrollbar-thumb:vertical {
    -webkit-border-image: url("") 9 0;
    border-color: transparent;
    border-width: 9px 0;
    min-height: 20px;
}

.quiet-scrollbars #open-files-container:hover::-webkit-scrollbar-thumb:horizontal,
.quiet-scrollbars #project-files-container:hover::-webkit-scrollbar-thumb:horizontal {
    -webkit-border-image: url("") 0 9;
    border-color: transparent;
    border-width: 0 9px;
    min-width: 20px;
}
